package math.calcul;

public class Binaire {

//    private final List<Integer> represent;
    private final double[] representTab;

    public Binaire(String bS) {
//        represent = new ArrayList<Integer>();
        representTab = new double[ 6 ];
        int lS = bS.length();

        for (int i = 0 ; i < 6 ; i++) {
            if (i < lS) {
//                represent.add(bS.charAt(i) == '0' ? 0 : 1);
                representTab[i] = bS.charAt(i) == '0' ? 0 : 1;
            }
        }
    }

    public double[] repTab() {
        return representTab;
    }
//    public List<Integer> rep() {
//        return represent;
//    }
//    @Override
//    public String toString() {
//
//        return represent.toString();
//    }
}
